"""
utils - 提供工具函数的模块

Author: Hao
Date: 2021/9/2
"""
import pymysql


def get_connection():
    """获取数据库连接"""
    return pymysql.connect(host='localhost', port=3306,
                           user='guest', password='Guest.618',
                           database='myapp', charset='utf8mb4')
